Json

Common Functions

Method Name Parameter Return Type Usage Example
readJSONToArray filePath: String JSONArray read the values to JSONArray JSONArray jsonArray = readJSONToArray(filePath);
printJSONArrayValues filePath: String void print the values in JSONArray
readJSONByKey filePath: String,key:String org.json.simple.JSONObject print the values in JSON file based on key entries
readJSONSubset jsonObject:org.json.simple.JSONObject,key:String org.json.simple.JSONObject print the values in JSON file based on key entries